{extend name="public/base" /}
{block name="pjax_container"}
<?php
    $titleTypeName = '请假审核';
?>
<style>
    tr>th,
    td {
        text-align: center;
    }

    .btn-group-xs>.btn,
    .btn-xs {
        padding: 5px;
        margin: 0 5px;
    }



    .content-header>.breadcrumb>li {
        color: #999;
    }

    .content-header>.breadcrumb>.active {
        color: #666;
    }

    .content-header {
        height: 51px;

    }

    .btn-primary {
        background-color: #1890FF;
        color: #fff;
        border: none;
        border-radius: 6px !important;
        margin-left: 15px;
        padding: 5px 10px;
    }

    .box-primary {
        border-top-color: #ecf0f5 !important;
        border-top-width: 16px;

    }

    .btn-primary:hover {
        background-color: #1890FF;
        color: #fff;
        border: none;
        opacity: .9;
        border-radius: 6px !important;
    }

    .delete-one {
        background-color: ff4141 !important;
        margin-left: 15px;
        border-radius: 6px;
    }

    .sreachs {
        background-color: #1890FF;
        color: #fff;
        border: none;
        border-radius: 6px !important;
        margin-left: 15px;
        padding: 7px 15px;
    }

    .type_explode {
        color: #fff;
        background-color: #d9534f;
        border-radius: 6px;
        border: none;
    }
     .nav-tabs-custom{
        margin-top: 16px;
    }
</style>
<section class="content-header">
    <ol class="breadcrumb">
          
       
        <li class="active">{$titleTypeName}</li>
    </ol>
</section>
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <form class="form-horizontal" method="POST" action="/{$Think.MODULE_NAME}/{$Think.CONTROLLER_NAME}/{$Think.ACTION_NAME}" onsubmit="return false" >
                <input type="hidden" name="id" value="{$info.id|default=0}" />
                <input type="hidden" name="status" value="{$info.status|default=''}" />
                <div class="nav-tabs-custom">
                    <ul class="nav nav-tabs">
                        <li class="pull-right"><a href="javascript:history.back(-1)" class="btn btn-sm" style="padding:10px 2px;"><i class="fa fa-list"></i> 返回</a></li>
                    </ul>
                    <div class="tab-content">
                        <div class="tab-pane active" id="tab1">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">请假员工</label>
                                <div class="col-sm-7">
                                    <select  class="form-control" name="user_id" disabled="disabled">
                                        {volist name='users' id='k'}
                                        <option value="{$k.id}" {if condition="$k.id eq $info.user_id"}selected{/if}>{$k.name}/{$k.department_name}</option>
                                        {/volist}
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">请假类型</label>
                                <div class="col-sm-7">
                                    <select  class="form-control" name="type" disabled="disabled">
                                        <option value="1" {if condition="$k.id eq $info.type"}selected{/if}>事假</option>
                                        <option value="2" {if condition="$k.id eq $info.type"}selected{/if}>病假</option>
                                        <option value="3" {if condition="$k.id eq $info.type"}selected{/if}>调休</option>
                                    </select>
                                </div>
                            </div>
                            {include file="form/input_isread" title="请假天数" name="day"/}
                            {include file="form/input_isread" title="请假小时" name="hour"/}
                            {include file="form/input_time_isread" title="开始时间" name="start_time"/}
                            {include file="form/input_isread" title="请假扣分" name="deduct_marks"/}
                            <div class="form-group">
                                <label class="col-sm-2 control-label">初审人</label>
                                <div class="col-sm-7">
                                        <input style="border-radius: 6px;" class="form-control classname" readonly placeholder="初审人" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">终审人</label>
                                <div class="col-sm-7">
                                    <input style="border-radius: 6px;" class="form-control classname" readonly placeholder="终审人" />
                                </div>
                            </div>
                            {include file="form/input_isread" title="请假事由" name="reason"/}


                            <div class="form-group">
                                <label class="col-sm-2 control-label">审核意见:</label>
                                <div class="col-sm-7">
                                    <textarea name="check_desc" style="width: 100%;height: 85px; border-radius: 6px; padding: 5px;" placeholder="请填写任务内容">{$info.check_desc|default=''}</textarea>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">审核状态</label>
                                <div class="col-sm-7">
                                    <select class="form-control select2" name="check_status" style="width:100%;">
                                        <option value="1">通过</option>
                                        <option value="2">驳回</option>
                                    </select>
                                </div>
                            </div>
                        </div>

                    </div>

                    <div class="box-footer">
                        <div class="col-sm-2"></div>
                        <div class="col-sm-7">
                            <div class="btn-group pull-right">
                                <button type="submit" class="btn btn-info pull-right submits" data-loading-text="&lt;i class='fa fa-spinner fa-spin '&gt;&lt;/i&gt; 提交">提交</button>
                            </div>
                        </div>
                    </div>

                </div>
            </form>
        </div>
    </div>
</section>
<script type="application/javascript">
    $(document).ready(function () {
        /*ajax页面加载icheck，有该控件的页面才需要*/
        $(".select2").select2({language:"zh-CN"});

    })
</script>
{/block}
